package com.sjy.ylxt.entity.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("分页基础参数")
public class BasePageParam {
    @NotNull(message = "分页参数不可为空")
    @ApiParam(value = "页码", defaultValue = "1")
    Integer pageNum;

    @NotNull(message = "分页参数不可为空")
    @ApiParam(value = "每页条数", defaultValue = "10")
    Integer pageSize;
}
